
//
//  InstallNewPWViewController.m
//  TaiHao
//
//  Created by rzm on 16/5/30.
//  Copyright © 2016年 rzm. All rights reserved.
//

#import "SampuxSetNewPWViewController.h"
#import "SampuxSetNewPassWordView.h"

@interface SampuxSetNewPWViewController ()<SampuxPassWordViewConfirmBtnClickDelegate>

@property (nonatomic, strong) SampuxSetNewPassWordView *passWordView;

@end

@implementation SampuxSetNewPWViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];

    [self.navigationItem setHidesBackButton:YES];

    [self createBackBarButtonItem];
    [self createSetNewPassWordView];
}

- (void)createSetNewPassWordView
{
    SampuxSetNewPassWordView *newPassWordView = [[SampuxSetNewPassWordView alloc]initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height)];
    [self.view addSubview:newPassWordView];
    newPassWordView.btnDelegate = self;
    self.passWordView = newPassWordView;
}

- (void)clickConfirmBtn
{
   dispatch_async(dispatch_get_main_queue(), ^{
       [self.navigationController popToRootViewControllerAnimated:YES];
   });
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];
    SampuxCustomNavController *nav = (SampuxCustomNavController *)self.navigationController;
    nav.titleStr = @"新密码";
}

@end
